package com.tsd.core.config.excel;

import cn.afterturn.easypoi.cache.manager.POICacheManager;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @ClassName: ExcelListener
 * @Description: TODO
 * @Author: Hillpool
 * @Date: 2021/1/27 12:06
 * @Version: 1.0
 */
@Component
public class ExcelListener implements ApplicationListener<ApplicationReadyEvent> {


    @Override
    public void onApplicationEvent(ApplicationReadyEvent event) {
        POICacheManager.setFileLoader(new EasypoiFileLoader());
    }
}
